package com.gxar.quick.ar.server.base.model.plaza.vo.response;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.gxar.quick.ar.server.base.model.plaza.vo.PlazaVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @author linsy
 * @version 1.0
 * @created 2023/11/9 16:28
 */
@Data
@ApiModel("广场详情响应")
@EqualsAndHashCode(callSuper = true)
public class AdminPlazaInfoResponse extends PlazaVO {

    @ApiModelProperty("广场id")
    @JSONField(name = "id")
    @JsonProperty("id")
    private String id;

    @ApiModelProperty("用户id")
    @JSONField(name = "user_id")
    @JsonProperty("user_id")
    private String userId;

    @ApiModelProperty("收藏次数")
    @JSONField(name = "favorites_count")
    @JsonProperty("favorites_count")
    private Integer favoritesCount;

    @ApiModelProperty("分享次数")
    @JSONField(name = "share_count")
    @JsonProperty("share_count")
    private Integer shareCount;

    @ApiModelProperty("banner")
    @JSONField(name = "banner")
    @JsonProperty("banner")
    private String banner;

    @ApiModelProperty("创建时间")
    @JSONField(name = "created_at")
    @JsonProperty("created_at")
    @JsonFormat(pattern = "MM-dd", timezone = "GMT+8")
    private Date createdAt;

    @ApiModelProperty("广场作品作者用户名字")
    @JSONField(name = "user_name")
    @JsonProperty("user_name")
    private String userName;

    @ApiModelProperty("用户头像")
    @JSONField(name = "avatar")
    @JsonProperty("avatar")
    private String avatar;

}
